.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;
.super Landroid/webkit/WebChromeClient;
.source "ContentLoaderWebView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ChromeClient"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;


# direct methods
.method private constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;)V
    .locals 0
    .parameter

    .prologue
    .line 66
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$1;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 66
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;)V

    return-void
.end method


# virtual methods
.method public onJsAlert(Landroid/webkit/WebView;Ljava/lang/String;Ljava/lang/String;Landroid/webkit/JsResult;)Z
    .locals 3
    .parameter "view"
    .parameter "url"
    .parameter "message"
    .parameter "result"

    .prologue
    .line 70
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    iget-object v0, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mContentLoaderListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;

    .line 71
    .local v0, listener:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;
    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$ChromeClient;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;

    iget-boolean v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView;->mCancelled:Z

    if-nez v1, :cond_0

    .line 72
    if-eqz p3, :cond_1

    const-string v1, "null"

    invoke-virtual {v1, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 73
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "<html>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "</html>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;->onLoad(Ljava/lang/String;)V

    .line 78
    :cond_0
    :goto_0
    invoke-virtual {p4}, Landroid/webkit/JsResult;->confirm()V

    .line 79
    const/4 v1, 0x1

    return v1

    .line 75
    :cond_1
    invoke-interface {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/ContentLoaderWebView$IWebContentLoadedListener;->onFailedToLoad()V

    goto :goto_0
.end method
